<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/Admin/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/Admin/css/admin.css">
<script src="__PUBLIC__/Admin/js/jquery.js"></script>
<script src="__PUBLIC__/Admin/js/pintuer.js"></script>
</head>
<body>
<div>
  <!--<a class="button button-little bg-green" href="{:U('Admin/info/infoadd',['type'=>$type])}" target="right">-->
  <!--<span></span><i class="fas fa-plus"></i> 添加</a>-->
</div>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 文章列表</strong></div>
  <table class="table table-hover text-center">
    <tr>
      <th width="20%">ID</th>
      <th width="20%">文章标题</th>
      <th width="20%">时间</th>
      <th width="20%">操作</th>
    </tr>
    <foreach name="arts" item="a">
    <tr>
      <td>{$a['id']}</td>
      <td>{$a['title']}</td>
      <td><img src="{$a['img']}" width="100" alt=""></td>
      <td><div class="button-group">
      <a class="button border-main" href="{:U('Admin/Info/infoedit',array('id'=>$a['id']))}"><span class="icon-edit"></span> 修改</a>
      <!--<a class="button border-red" href="javascript:void(0)" onclick="return del({$a['aid']})"><span class="icon-trash-o"></span> 删除</a>-->
      </div></td>
    </tr>
    </foreach>
    <tr>
    <!--<td colspan="8"><div class="pagelist">{$page}</div></td>-->
    </tr>
    <empty name="arts">
      <tr>
        <td colspan="8"><div class="pagelist">暂无数据</div></td>
      </tr>
    </empty>
  </table>
</div>

</body></html>
<script>
// function del(id){
//   if(confirm("您确定要删除吗?")){
//       window.location.href="/Admin/art/del/id/"+id;
//   }
// }
</script>